package com.wtwd.wtwddevice.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.wtwd.device.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 *
 * </p>
 *
 * @author mjy
 * @since 2024-04-28
 */
@ApiModel(value = "DeviceStatus对象", description = "")
public class DeviceStatus extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备状态表主键id 并非为设备表主键 该主键自动递增")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "设备id")
    private Long deviceId;

    @ApiModelProperty(value = "0:离线 1在线")
    private Integer status;

    @ApiModelProperty(value = "最后一次设备上传指令设备时间")
    private String deviceTime;

    @ApiModelProperty(value = "设备下线时间")
    private Long downlineTime;

    @ApiModelProperty(value = "电量")
    private String battery;

    @ApiModelProperty(value = "步数")
    private String step;

    @ApiModelProperty(value = "佩戴状态")
    private String wearingState;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    public String getDeviceTime() {
        return deviceTime;
    }

    public void setDeviceTime(String deviceTime) {
        this.deviceTime = deviceTime;
    }

    public Long getDownlineTime() {
        return downlineTime;
    }

    public void setDownlineTime(Long downlineTime) {
        this.downlineTime = downlineTime;
    }

    public String getBattery() {
        return battery;
    }

    public void setBattery(String battery) {
        this.battery = battery;
    }

    public String getStep() {
        return step;
    }

    public void setStep(String step) {
        this.step = step;
    }

    public String getWearingState() {
        return wearingState;
    }

    public void setWearingState(String wearingState) {
        this.wearingState = wearingState;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    @Override
    public String toString() {
        return "DeviceStatus{" +
                "id=" + id +
                ", deviceId=" + deviceId +
                ", status=" + status +
                ", deviceTime=" + deviceTime +
                ", downlineTime=" + downlineTime +
                ", battery='" + battery + '\'' +
                ", step='" + step + '\'' +
                ", wearingState='" + wearingState + '\'' +
                '}';
    }
}
